Optimal. Leaf size=237 \[ \frac {4 a^3 (11 A+13 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}-\frac {4 a^3 (17 A+21 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{15 d}+\frac {4 a^3 (11 A+13 B) \sin (c+d x)}{21 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {4 a^3 (23 A+24 B) \sin (c+d x)}{105 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 (13 A+9 B) \sin (c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{63 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {4 a^3 (17 A+21 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)}}+\frac {2 a A \sin (c+d x) (a \cos (c+d x)+a)^2}{9 d \cos ^{\frac {9}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.52, antiderivative size = 237, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.212, Rules used = {2975, 2968, 3021, 2748, 2636, 2641, 2639} \[ \frac {4 a^3 (11 A+13 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}-\frac {4 a^3 (17 A+21 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{15 d}+\frac {4 a^3 (11 A+13 B) \sin (c+d x)}{21 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {4 a^3 (23 A+24 B) \sin (c+d x)}{105 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 (13 A+9 B) \sin (c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{63 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {4 a^3 (17 A+21 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)}}+\frac {2 a A \sin (c+d x) (a \cos (c+d x)+a)^2}{9 d \cos ^{\frac {9}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2636
Rule 2639
Rule 2641
Rule 2748
Rule 2968
Rule 2975
Rule 3021
Rubi steps
\begin {align*} \int \frac {(a+a \cos (c+d x))^3 (A+B \cos (c+d x))}{\cos ^{\frac {11}{2}}(c+d x)} \, dx &=\frac {2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{9 d \cos ^{\frac {9}{2}}(c+d x)}+\frac {2}{9} \int \frac {(a+a \cos (c+d x))^2 \left (\frac {1}{2} a (13 A+9 B)+\frac {3}{2} a (A+3 B) \cos (c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx\\ &=\frac {2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{9 d \cos ^{\frac {9}{2}}(c+d x)}+\frac {2 (13 A+9 B) \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{63 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {4}{63} \int \frac {(a+a \cos (c+d x)) \left (\frac {3}{2} a^2 (23 A+24 B)+\frac {15}{2} a^2 (2 A+3 B) \cos (c+d x)\right )}{\cos ^{\frac {7}{2}}(c+d x)} \, dx\\ &=\frac {2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{9 d \cos ^{\frac {9}{2}}(c+d x)}+\frac {2 (13 A+9 B) \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{63 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {4}{63} \int \frac {\frac {3}{2} a^3 (23 A+24 B)+\left (\frac {15}{2} a^3 (2 A+3 B)+\frac {3}{2} a^3 (23 A+24 B)\right ) \cos (c+d x)+\frac {15}{2} a^3 (2 A+3 B) \cos ^2(c+d x)}{\cos ^{\frac {7}{2}}(c+d x)} \, dx\\ &=\frac {4 a^3 (23 A+24 B) \sin (c+d x)}{105 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{9 d \cos ^{\frac {9}{2}}(c+d x)}+\frac {2 (13 A+9 B) \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{63 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {8}{315} \int \frac {\frac {45}{4} a^3 (11 A+13 B)+\frac {21}{4} a^3 (17 A+21 B) \cos (c+d x)}{\cos ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {4 a^3 (23 A+24 B) \sin (c+d x)}{105 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{9 d \cos ^{\frac {9}{2}}(c+d x)}+\frac {2 (13 A+9 B) \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{63 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {1}{7} \left (2 a^3 (11 A+13 B)\right ) \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x)} \, dx+\frac {1}{15} \left (2 a^3 (17 A+21 B)\right ) \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {4 a^3 (23 A+24 B) \sin (c+d x)}{105 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {4 a^3 (11 A+13 B) \sin (c+d x)}{21 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {4 a^3 (17 A+21 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)}}+\frac {2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{9 d \cos ^{\frac {9}{2}}(c+d x)}+\frac {2 (13 A+9 B) \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{63 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {1}{21} \left (2 a^3 (11 A+13 B)\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx-\frac {1}{15} \left (2 a^3 (17 A+21 B)\right ) \int \sqrt {\cos (c+d x)} \, dx\\ &=-\frac {4 a^3 (17 A+21 B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{15 d}+\frac {4 a^3 (11 A+13 B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}+\frac {4 a^3 (23 A+24 B) \sin (c+d x)}{105 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {4 a^3 (11 A+13 B) \sin (c+d x)}{21 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {4 a^3 (17 A+21 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)}}+\frac {2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{9 d \cos ^{\frac {9}{2}}(c+d x)}+\frac {2 (13 A+9 B) \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{63 d \cos ^{\frac {7}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.71, size = 967, normalized size = 4.08 \[ \sqrt {\cos (c+d x)} (\cos (c+d x) a+a)^3 \left (\frac {A \sec (c) \sin (d x) \sec ^5(c+d x)}{36 d}+\frac {\sec (c) (7 A \sin (c)+27 A \sin (d x)+9 B \sin (d x)) \sec ^4(c+d x)}{252 d}+\frac {\sec (c) (135 A \sin (c)+45 B \sin (c)+238 A \sin (d x)+189 B \sin (d x)) \sec ^3(c+d x)}{1260 d}+\frac {\sec (c) (238 A \sin (c)+189 B \sin (c)+330 A \sin (d x)+390 B \sin (d x)) \sec ^2(c+d x)}{1260 d}+\frac {\sec (c) (55 A \sin (c)+65 B \sin (c)+119 A \sin (d x)+147 B \sin (d x)) \sec (c+d x)}{210 d}+\frac {(17 A+21 B) \csc (c) \sec (c)}{30 d}\right ) \sec ^6\left (\frac {c}{2}+\frac {d x}{2}\right )+\frac {17 A (\cos (c+d x) a+a)^3 \csc (c) \left (\frac {\, _2F_1\left (-\frac {1}{2},-\frac {1}{4};\frac {3}{4};\cos ^2\left (d x+\tan ^{-1}(\tan (c))\right )\right ) \sin \left (d x+\tan ^{-1}(\tan (c))\right ) \tan (c)}{\sqrt {1-\cos \left (d x+\tan ^{-1}(\tan (c))\right )} \sqrt {\cos \left (d x+\tan ^{-1}(\tan (c))\right )+1} \sqrt {\cos (c) \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt {\tan ^2(c)+1}} \sqrt {\tan ^2(c)+1}}-\frac {\frac {2 \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt {\tan ^2(c)+1} \cos ^2(c)}{\cos ^2(c)+\sin ^2(c)}+\frac {\sin \left (d x+\tan ^{-1}(\tan (c))\right ) \tan (c)}{\sqrt {\tan ^2(c)+1}}}{\sqrt {\cos (c) \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt {\tan ^2(c)+1}}}\right ) \sec ^6\left (\frac {c}{2}+\frac {d x}{2}\right )}{60 d}+\frac {7 B (\cos (c+d x) a+a)^3 \csc (c) \left (\frac {\, _2F_1\left (-\frac {1}{2},-\frac {1}{4};\frac {3}{4};\cos ^2\left (d x+\tan ^{-1}(\tan (c))\right )\right ) \sin \left (d x+\tan ^{-1}(\tan (c))\right ) \tan (c)}{\sqrt {1-\cos \left (d x+\tan ^{-1}(\tan (c))\right )} \sqrt {\cos \left (d x+\tan ^{-1}(\tan (c))\right )+1} \sqrt {\cos (c) \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt {\tan ^2(c)+1}} \sqrt {\tan ^2(c)+1}}-\frac {\frac {2 \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt {\tan ^2(c)+1} \cos ^2(c)}{\cos ^2(c)+\sin ^2(c)}+\frac {\sin \left (d x+\tan ^{-1}(\tan (c))\right ) \tan (c)}{\sqrt {\tan ^2(c)+1}}}{\sqrt {\cos (c) \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt {\tan ^2(c)+1}}}\right ) \sec ^6\left (\frac {c}{2}+\frac {d x}{2}\right )}{20 d}-\frac {11 A (\cos (c+d x) a+a)^3 \csc (c) \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};\sin ^2\left (d x-\tan ^{-1}(\cot (c))\right )\right ) \sec \left (d x-\tan ^{-1}(\cot (c))\right ) \sqrt {1-\sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt {-\sqrt {\cot ^2(c)+1} \sin (c) \sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt {\sin \left (d x-\tan ^{-1}(\cot (c))\right )+1} \sec ^6\left (\frac {c}{2}+\frac {d x}{2}\right )}{42 d \sqrt {\cot ^2(c)+1}}-\frac {13 B (\cos (c+d x) a+a)^3 \csc (c) \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};\sin ^2\left (d x-\tan ^{-1}(\cot (c))\right )\right ) \sec \left (d x-\tan ^{-1}(\cot (c))\right ) \sqrt {1-\sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt {-\sqrt {\cot ^2(c)+1} \sin (c) \sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt {\sin \left (d x-\tan ^{-1}(\cot (c))\right )+1} \sec ^6\left (\frac {c}{2}+\frac {d x}{2}\right )}{42 d \sqrt {\cot ^2(c)+1}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.68, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {B a^{3} \cos \left (d x + c\right )^{4} + {\left (A + 3 \, B\right )} a^{3} \cos \left (d x + c\right )^{3} + 3 \, {\left (A + B\right )} a^{3} \cos \left (d x + c\right )^{2} + {\left (3 \, A + B\right )} a^{3} \cos \left (d x + c\right ) + A a^{3}}{\cos \left (d x + c\right )^{\frac {11}{2}}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \cos \left (d x + c\right ) + A\right )} {\left (a \cos \left (d x + c\right ) + a\right )}^{3}}{\cos \left (d x + c\right )^{\frac {11}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 4.92, size = 1178, normalized size = 4.97 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \cos \left (d x + c\right ) + A\right )} {\left (a \cos \left (d x + c\right ) + a\right )}^{3}}{\cos \left (d x + c\right )^{\frac {11}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.03, size = 552, normalized size = 2.33 \[ \frac {2\,{{}}_2{\mathrm {F}}_1\left (-\frac {3}{4},\frac {1}{2};\ \frac {1}{4};\ {\cos \left (c+d\,x\right )}^2\right )\,\left (\frac {19\,A\,a^3\,\sin \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}+\frac {9\,A\,a^3\,\sin \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{7/2}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}+\frac {25\,B\,a^3\,\sin \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}+\frac {3\,B\,a^3\,\sin \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{7/2}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}\right )}{21\,d}-\frac {8\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{4},\frac {1}{2};\ \frac {7}{4};\ {\cos \left (c+d\,x\right )}^2\right )\,\left (\frac {34\,A\,a^3\,\sin \left (c+d\,x\right )}{\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}+\frac {5\,A\,a^3\,\sin \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{5/2}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}+\frac {27\,B\,a^3\,\sin \left (c+d\,x\right )}{\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}\right )}{135\,d}+\frac {8\,\left (\frac {3\,A\,a^3\,\sin \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}+\frac {B\,a^3\,\sin \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {3}{4},\frac {1}{2};\ \frac {5}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{21\,d}+\frac {2\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{4},\frac {1}{2};\ \frac {3}{4};\ {\cos \left (c+d\,x\right )}^2\right )\,\left (\frac {136\,A\,a^3\,\sin \left (c+d\,x\right )}{\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}+\frac {39\,A\,a^3\,\sin \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{5/2}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}+\frac {5\,A\,a^3\,\sin \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{9/2}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}+\frac {153\,B\,a^3\,\sin \left (c+d\,x\right )}{\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}+\frac {27\,B\,a^3\,\sin \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{5/2}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}\right )}{45\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________